package com.example.user.domain.student;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.common.core.domain.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
@TableName("tb_student")
public class Student extends BaseEntity {
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "STUDENT_ID", type = IdType.ASSIGN_ID)
    private Long studentId;

    private String nickName;

    private Long classroomId;

    private String email; // 当作登录账户

    private String phone;

    private String headImage;

    private Integer age;

    private Integer sex;

    private String wechat;

    private String schoolName;

    private String majorName;

    private String introduce;

    private Integer status;
}
